package com.xunji.user.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.xunji.user.util.UUIDUtil;
import lombok.Data;

import java.time.LocalDateTime;

@TableName(value = "t_lp_role_menu_auth")
@Data
public class RoleMenu {

    private String id;

    private String roleId;

    private Integer menuId;

    private String authId;

    private LocalDateTime createdTime;

    public static RoleMenu getInstance(String roleId, Integer menuId){
        RoleMenu roleMenu = new RoleMenu();
        roleMenu.setId(UUIDUtil.getUUID());
        roleMenu.setRoleId(roleId);
        roleMenu.setMenuId(menuId);
        roleMenu.setCreatedTime(LocalDateTime.now());
        return roleMenu;
    }




}
